using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace JaxDug.Models.FeaturedObjects
{
    public class Book
    {
        [Required]
        public virtual string ISBN { get; set; }

        [Required]
        public virtual string Title { get; set; }

        [Required]
        public virtual string Author { get; set; }

        [Required]
        [DisplayName("Why do you recommend this book?")]
        [DataType(DataType.MultilineText)]
        public virtual string Description { get; set; }

        [Required]
        public virtual string AmazonUrl { get; set; }

        [Required]
        public virtual string CoverImageUrl { get; set; }

        [ScaffoldColumn(false)]
        public virtual string User { get; set; }

        [DataType(DataType.DateTime)]
        [ScaffoldColumn(false)]
        public virtual DateTime LastAmazonUpdate { get; set; }

        [DataType(DataType.DateTime)]
        [ScaffoldColumn(false)]
        public virtual DateTime BookCreated { get; set; }

    }
}